var echartData={
  money: [
    {value: 335, name: '直接访问'},
    {value: 310, name: '邮件营销'},
    {value: 234, name: '联盟广告'},
    {value: 135, name: '视频广告'},
    {value: 1548, name: '搜索引擎'}
  ],
  out: ['直接访问', '邮件营销', '联盟广告', '视频广告', '搜索引擎']
}
function getStatic(){
  return echartData;
}
function getServerData(){
  return new Promise(function (resolve, reject){
    wx.request({
      url: 'http://127.0.0.1/bnstudy/public/index.php/api/v1/Purchasedata',
      success:function(res){
      //  console.log(res)
        resolve(res);
      }
    })
  })
}
module.exports = {
  getStatic: getStatic,
  getServerData: getServerData
}